<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action {
    public function index(){
	 $isLogin = session('isLogin');

		if(!$isLogin){
			$this->error('请先登录','admin.php?s=Admin/login');
			return 0;
		}

		$admin_name = session('admin_name');
		$permission = session('permission');
		$this->assign('admin_name',$admin_name);
		$this->assign('permission',$permission);
		$this->display();
    }

    public function index(){
	 $thin->display();
    }
}